﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Micrhard.FMCG.Server.Models;

namespace Micrhard.FMCG.Server.Impl
{
    public class ProtalSubKAPlanComparer : IComparer<ProtalSubKAPlanModel>
    {
        public int Compare(ProtalSubKAPlanModel x, ProtalSubKAPlanModel y)
        {
            if (x.SubKAID == y.SubKAID)
            {
                if (x.ProtalTime.Date == y.ProtalTime.Date)
                {
                    return 0;
                }

            }
            return -1;
        }
    }
}
